Optical spectroscopy measurement